<template>
  <div class="container">
    <el-row>
        <el-col :span="span">
          <div class="grid-content bg-purple">

          </div>
        </el-col>
        <el-col :span="span">
          <div class="grid-content bg-purple-light">

          </div>
        </el-col>
        <el-col :span="span">
          <div class="grid-content bg-purple">

          </div>
        </el-col>
        <el-col :span="span">
          <div class="grid-content bg-purple-light">

          </div>
        </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
    data() {
    return {
      span: 6
    }
    },
    mounted() {

    },
    methods:{

    }

 }
</script>

<style lang="scss" scoped>
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    height: 160px;
    margin: 20px;
    transition: box-shadow 0.3s ease;
  }
  .grid-content:hover {
    background-color: #67C23A; /* 悬浮时的背景色 */
    color: white; /* 悬浮时的文本颜色 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
</style>